import { Base } from "../../utils/base.js"

class Author extends Base {
  constructor() {
    super();
  }
  //作者列表
  getAuthorData(cid, page, num, tit, callback) {
    var params = {
      url: 'article/index?page=' + page + '&title=' + tit,
      data: { 'cid': cid, 'num': num },
      type: 'get',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }

  //大师详情
  getAuthorDetail(id, callback){

    var that = this;
    var params = {
      url: 'article/view',
      data: { 'id':id },
      type: 'get',
      sCallback: function (data) {
        callback && callback(data);
      }
    }
    this.request(params);
  }



};

export { Author };